<h1>{t 1=$website->getLabel()}Forms from %s{/t}</h1>

<div id="moduleTabs">
<ul>
    <li><a href="" title="" rel="history"><span>{t}Forms{/t}</span></a></li>
</ul>
</div>

<div id="tabContent">
    <div id="saveButton" style="display:block">
        <ul class="saveButtons">
            {hasRight rule=form_Add}
            <li class="first"><a href="{$URL_RELATIVE}/bo/#{url route='addStructure' docId=$website->getUniqueId() docLang=$website->getLang()}" class="nyroModal toolTip linkButton active" title="{t}Add a form - Click here to add a new form to use in the selected website.{/t}">{icon name="field.png"} {t}Add form{/t}</a></li>
            {/hasRight}
        </ul>
    </div>
    {if count($forms) >0}
    <table class="documentListTable">
        <thead>
            <tr>
                <th colspan="2">{t}Forms{/t}</th>
            </tr>
        </thead>
        <tbody class="documentListItems">
            {foreach from=$forms item=form}
            <tr>
                <td style="width:20px;">
                    {hasRight rule=form_Edit}
                    <span class="listButtons"><a href="{$URL_RELATIVE}/bo/#{$form->getEditUrl()}" class="itemButton itemEditButton defaultAction openNewWindow toolTip" title="{t}Edit form - Click here to edit the selected form{/t}"></a></span>
                    {/hasRight}
                </td>
                <td>{icon name="field.png"} {$form->getLabel()}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    {/if}
</div>